// .stylelintrc.cjs

/**
 * @type {import('stylelint').Config}
 */
export default {
  root: true,
  extends: [
    "stylelint-config-standard",
    "stylelint-config-standard-scss", // tips: 本插件也可以替换成 stylelint-config-recommended-scss
    "stylelint-config-recess-order"
  ],
  plugins: ["stylelint-prettier"],
  overrides: [
    {
      files: ["**/*.{tsx,html}"],
      customSyntax: "postcss-html"
    },
    {
      files: ["**/*.{css,scss}"],
      customSyntax: "postcss-scss"
    }
  ],
  // 自定义规则
  rules: {
    "prettier/prettier": true,
    "comment-empty-line-before": "never", // never|always|always-multi-line|never-multi-line
    "custom-property-empty-line-before": "never",
    "no-empty-source": null,
    "comment-no-empty": null,
    "scss/comment-no-empty": null,
    "no-duplicate-selectors": null,
    "font-family-no-missing-generic-family-keyword": null,
    "selector-class-pattern": null,
    "no-invalid-position-declaration": null,
    "value-keyword-case": null,
    "at-rule-no-unknown": null,
    "scss/at-rule-no-unknown": null,
    "declaration-empty-line-before": "never",
    "selector-type-no-unknown": null
  }
}
